'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    router.get('/', controller.home.index);
    router.get('/user', controller.home.user);
    router.get('/add', controller.home.add);
    // 
    router.get('indexTaskList', controller.home.indexTaskList);

    // user info
    router.post('/certificate', controller.user.certificate);
    
    // 文件
    // 上传图片
    router.post('/upload', controller.file.uploadImg);
};
